package com.chaodev.base.model;

import io.swagger.annotations.ApiModel;

@ApiModel("分页信息")
public class DataPage<T> {
    private Integer page;
    private Integer rows;
    private String sort;
    private  String order;
    private String keyword;
    private  Integer totalPage;
    private Integer  totalRecords;
    private Integer menuId;
    private String userId;
    private String departId;
    private String roleId;
    private String userName;
    private T data;

    public DataPage(Integer page, Integer rows, String sort, String order, String keyword, Integer totalPage, Integer totalRecords, Integer menuId, String userId, String departId, String roleId, String userName, T data) {
        this.page = page;
        this.rows = rows;
        this.sort = sort;
        this.order = order;
        this.keyword = keyword;
        this.totalPage = totalPage;
        this.totalRecords = totalRecords;
        this.menuId = menuId;
        this.userId = userId;
        this.departId = departId;
        this.roleId = roleId;
        this.userName = userName;
        this.data = data;
    }

    public DataPage() {
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getDepartId() {
        return departId;
    }

    public void setDepartId(String departId) {
        this.departId = departId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public Integer getTotalRecords() {
        return totalRecords;
    }

    public void setTotalRecords(Integer totalRecords) {
        this.totalRecords = totalRecords;
    }

    @Override
    public String toString() {
        return "DataPage{" +
                "page=" + page +
                ", rows=" + rows +
                ", sort='" + sort + '\'' +
                ", order='" + order + '\'' +
                ", keyword='" + keyword + '\'' +
                ", totalPage=" + totalPage +
                ", totalRecords=" + totalRecords +
                ", menuId=" + menuId +
                ", userId='" + userId + '\'' +
                ", departId='" + departId + '\'' +
                ", roleId='" + roleId + '\'' +
                ", userName='" + userName + '\'' +
                ", data=" + data +
                '}';
    }
}
